<div class="container">

    <div class="row">
        <div class="span2">
            <?php
            $menu = 'menu_' . $this->usertype . '.php';
            include($menu);
            ?>
        </div>
        <div class="span10">
            <h3 class="topic">ผู้ป่วยทั้งหมด</h3>
            <div class="well" style="min-height:250px;">


                <form method="post" action="">
                    <div class="">
                        <input type="text" id="text" name="text" value="" class="input-xxlarge" placeholder="ชื่อผู้ป่วย หรือ รหัสประจำตัวประชาชน">
                        <button class="btn btn btn-primary" type="submit" style="margin-bottom: 10px;"><i class="icon-search icon-white"></i>ค้นหา</button>
                    </div>
                </form>
                <table class="table">
                    <tr>
                        <th>ลำดับ</th>
                        <th>รายชื่อผู้ป่วย</th>
                        <th colspan="3"> 
                    <center>
                        <a  class="btn btn-success" href="<?php echo base_url() ?>staff/add_patient">
                            <i class="icon-plus-sign icon-white "></i>
                        </a>
                    </center>
                    </th>
                    </tr>
                    <?php
                    if (isset($patient)) {
                        $i = 1;
                        foreach ($patient as $key => $value) {
                            ?>
                            <tr>
                                <td class="table_no"> <center><?php echo $i; ?> </center></td>
                            <td class="table_body"><?php echo $value['pat_name'] . '  ' . $value['pat_lname']; ?></td>
                            <td class="table_s">
                            <center>
                                <?php echo $this->get_value->get_pat_status2($value['pat_id']); ?>
                            </center>
                            </td>
                            <td class="table_s">
                            <center>
                                <a title="ตรวจ"  href="<?php echo base_url(); ?>doctor/query_check_pat/<?php echo $value['pat_id'] ?>/<?php echo $this->get_value->get_pat_status3($value['pat_id']); ?>">
                                    <button type="button" class="btn btn-small btn-primary"><i class="icon-edit icon-white"></i>ตรวจ</button>
                                </a>
                            </center>    
                            </td>
                            <td  class="table_s" >
                            <center>
                                <!--   <a  onclick="return confirm('ยืนยันการลบข้อมูล')" title="ลบ" alt="ลบ" href="">
                                     <button type="button" class="btn btn-small btn-danger"><i class="icon-trash icon-white"></i></button>
                                  </a> -->
                            </center>
                            </td>
                            </tr>

                            <?php
                            $i++;
                        }
                    }
                    ?>
                </table>
                <div class="pagination" style="float:right">
                    <div class="paging">
                        <?php echo $this->my_pagination; ?>
                    </div>
                </div>      
            </div>

        </div>


    </div>





</div>
<hr>
<!--Start second row of columns-->

